<?php
require_once SERVER_ROOT . '/includes/publicidad.php';
$ad = new publicidad();
$banner = $ad->mostrar_banner();
if (count($banner['data']) > 0):
    ?>
    <div>
        <a href="<?php echo $banner['data'][0]['url']; ?>" target="_blank">
            <img src="<?php echo ROOT.IMAGES_ADS.$banner['data'][0]['foto']; ?>"/>
        </a>
    </div>
<?php endif; ?>

